package com.lz.blog.service;

import com.lz.blog.dao.pojo.SysUser;
import com.lz.blog.vo.Result;
import com.lz.blog.vo.params.LoginParam;
import com.lz.blog.vo.params.RegisterParam;
import org.springframework.stereotype.Service;

public interface LoginService {
    /**
     * 登录功能
     *
     * @param loginParam
     * @return
     */
    Result login(LoginParam loginParam);

    /**
     * 校验是否合法
     */
    SysUser checkToken(String token);

    /**
     * 推出登录
     * @param token
     * @return
     */
    Result logout(String token);

    Result register(RegisterParam registerParam);
}
